  <div class="Top">
    <div class="float_right lang">
     <%#render :partial=>'layouts/online_im'%>
     <%=@cur_user.role.t if @cur_user.role%> <%=link_to @cur_user.name,person_url(@cur_user)%> |
     <%=link_to 'Logout'.t,"/login/logout"%> 
     <%=render :partial=>'layouts/lang'%>
     <span>
     </span>
    </div>
    <span style="margin-left:30px;" class="<%=(Globalize::Locale.language.to_s == "Chinese" ? "":"small_font_link")%>">
      <%=com_link "Dashboard".t,'/dashboard'%> |
      <%if @cur_user.have_power?%>
      <%=com_link 'All Projects'.t, "/projects"%> |
      <%end%>
      <%=com_link 'All Todos'.t, "/todos"%> |
      <%=com_link 'All people'.t,"/people"%> |
      <%=com_link 'Time Report'.t,"/statistic"%>
      <%if @cur_user.have_power?%> |
      <%=com_link 'Settings'.t,"global","setting"%> | 
      <%#com_link 'Permissions'.t,"/permission"%>
      <%end%>
      <%if @project%>
      |  
      <span id='choose_pj_label'><%=link_to "Choose a project".t,'#',:class=>'comm',:onclick=>"Element.show('choose_pj_form');Element.hide('choose_pj_label')"%></span> 
      <span id='choose_pj_form' style="display:none">
        <strong><%="Choose a project".t%>:</strong>
	<select id='projectSelector' onchange="selectProject(this)"> 
	  <optgroup label="<%="Your Projects".t%>">
	    <%=options_from_collection_for_select (@cur_user.account_owner? ? @cur_user.company.active_projects : @cur_user.active_projects),'id','name',params[:project_id].to_i%>
	  </optgroup>
	</select>
	<%=link_to"Cancel".t,'#',:class=>'admin',:onclick=>"Element.show('choose_pj_label');Element.hide('choose_pj_form')"%>
      </span> 
      <%end%>
    <span>
  </div>
